﻿<%@ include file="include/top.jsp" %>
<%@ include file="include/errorArea.jsp" %>

<body style="overflow:scroll;overflow-x:hidden;background-color:#F0F0F0"> 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
     
          <tr>
            <td name="td_hide_server" id="server" width="182" height="31" align="center" valign="middle" background="images/first_server.jpg" onclick="opentd('server');" class="内容栏目白色字体"><span class="treePanert">首选服务</span></td>
          </tr>
          <tr name="tr_hide_server" style="display:none">
            <td height="2">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="28" align="center" valign="middle" class="二级菜单14号黑色字体"  onclick="onSelect(this);" onMouseOver="toClick(this);"> <a href="${ctx}/supplierAdmin/toUpdatePW" target="main">修改密码</a></td>
              </tr>
            </table></td>
          </tr>
           <tr>
            <td height="2" align="center" valign="middle" class="内容栏目白色字体"></td>
          </tr>
 		 
             <tr>
            <td name="td_hide_setting" id="setting" width="182" height="31" align="center" valign="middle" background="images/setting_manage.jpg" onclick="opentd('setting');" class="内容栏目白色字体"><span class="treePanert">常规管理</span></td>
          </tr>
           <tr  name="tr_hide_setting" style="display:none">
            <td height="2">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <c:if test="${sessionScope.supplierAclArray[0]=='1'}">
      <tr>
                <td height="28" align="center" valign="middle" class="二级菜单14号黑色字体" onclick="onSelect(this);"  onMouseOver="toClick(this);">  <a href="${ctx}/supplierAdmin/listUser?p=1&sid=${sessionScope.supplierUser.supplierId}" target="main">用户管理</a></td>
              </tr>
 		     
           </c:if>
         <c:if test="${sessionScope.supplierAclArray[7]=='1'}">
              <tr>
                <td height="28" align="center" valign="middle" class="二级菜单14号黑色字体" onclick="onSelect(this);"  onMouseOver="toClick(this);">  <a href="${ctx}/supplierAdmin/toEditInfo" target="main">公司信息管理</a></td>
              </tr>
              </c:if>
            </table></td>
          </tr>
          <tr>
            <td height="2" align="center" valign="middle" class="内容栏目白色字体"></td>
          </tr>
 		    
   <tr>
            <td id="order" name="td_hide_order" width="182" height="31" align="center" valign="middle" background="images/goods_manage.jpg" onclick="opentd('order');" class="内容栏目白色字体"><span class="treePanert">可供商品管理</span></td>
          </tr>
            <tr name="tr_hide_order" style="display:none">
            <td height="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
             <c:if test="${sessionScope.supplierAclArray[1]=='1'}">
          <tr>
                <td height="28" align="center" valign="middle" class="二级菜单14号黑色字体" onclick="onSelect(this);"  onMouseOver="toClick(this);"> <a href="${ctx}/supplierProduct/listProduct?upStatus=0" target="main">可供商品管理</a></td>
              </tr>
              </c:if>
                <c:if test="${sessionScope.supplierAclArray[2]=='1'}">
         <tr>
                <td height="28" align="center" valign="middle" class="二级菜单14号黑色字体"  onclick="onSelect(this);" onMouseOver="toClick(this);">  <a href="${ctx}/productComment/listComment" target="main">评论管理</a></td>
              </tr>
</c:if>
              
            </table></td>
          </tr>
            <tr>
            <td height="2" align="center" valign="middle" class="内容栏目白色字体"></td>
          </tr>
          
          <tr>
            <td id="postgood" name="td_hide_postgood" height="31" align="center" valign="middle" background="images/goods_manage.jpg" onclick="opentd('postgood');" class="内容栏目白色字体"><span class="treePanert">配送管理</span></td>
          </tr>
     <tr name="tr_hide_postgood" style="display:none">
            <td height="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
               <c:if test="${sessionScope.supplierAclArray[3]=='1'}">
            
               <tr>
                <td height="28" align="center" valign="middle" class="二级菜单14号黑色字体" onclick="onSelect(this);"  onMouseOver="toClick(this);"><a href="${ctx}/supplierProduct/listOrder?status=1" target="main"> 配货清单</a></td>
              </tr>
           </c:if>
              <c:if test="${sessionScope.supplierAclArray[4]=='1'}">
              <tr>
                <td height="28" align="center" valign="middle" class="二级菜单14号黑色字体" onclick="onSelect(this);"  onMouseOver="toClick(this);"> <a href="${ctx}/supplierProduct/manageOrder?status=1" target="main">当期订单</a></td>
              </tr>
              </c:if>
                <c:if test="${sessionScope.supplierAclArray[5]=='1'}">
             <tr>
                <td height="28" align="center" valign="middle" class="二级菜单14号黑色字体"  onclick="onSelect(this);" onMouseOver="toClick(this);"> <a href="${ctx}/supplierProduct/oldOrder" target="main">往期订单</a></td>
              </tr>
              </c:if>
               </table></td>
          </tr>
          <tr>
            <td height="2" align="center" valign="middle" class="内容栏目白色字体"></td>
          </tr>
               
           <tr>
            <td id="forum" name="td_hide_forum" height="31" align="center" valign="middle" background="images/forum_manage.jpg" onclick="opentd('forum');" class="内容栏目白色字体"><span class="treePanert">交流空间</span></td>
          </tr>
     <tr name="tr_hide_forum" style="display:none">
            <td height="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <c:if test="${sessionScope.supplierAclArray[8]=='1'}">
            <tr>
                <td height="28" align="center" valign="middle" class="二级菜单14号黑色字体"  onclick="onSelect(this);" onMouseOver="toClick(this);">   <a href="${ctx}/forumS2O/listTopic" target="main">运营商沟通</a></td>
              </tr>
              </c:if>
              <c:if test="${sessionScope.supplierAclArray[9]=='1'}">
            <tr>
                <td height="28" align="center" valign="middle" class="二级菜单14号黑色字体"  onclick="onSelect(this);" onMouseOver="toClick(this);">   <a href="${ctx}/forumS2C/listTopic" target="main">服务站沟通</a></td>
              </tr>
              </c:if>
               </table></td>
          </tr>
          <tr>
            <td height="2" align="center" valign="middle" class="内容栏目白色字体"></td>
          </tr>
             
     <tr>
            <td id="money" name="td_hide_money" height="31" align="center" valign="middle" background="images/money_manage.jpg" onclick="opentd('money');" class="内容栏目白色字体"><span class="treePanert">财务管理</span></td>
          </tr>
     <tr name="tr_hide_money" style="display:none">
            <td height="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
             <c:if test="${sessionScope.supplierAclArray[6]=='1'}">
             <tr>
                <td height="28" align="center" valign="middle" class="二级菜单14号黑色字体"  onclick="onSelect(this);" onMouseOver="toClick(this);">  <a href="${ctx}/supplierCaiWu/listAccount" target="main">财务收支情况</a></td>
              </tr>
              </c:if>
               </table></td>
          </tr>
          <tr>
            <td height="2" align="center" valign="middle" class="内容栏目白色字体"></td>
          </tr>
        </table>
        <script type="text/javascript">
        function onSelect(obj)
        {
        	$(window.parent.parent.frames["topFrame"].document).find("#point").html($(obj).text());
    		
        }
    function toClick(obj)
   	{
       	$("td[background='images/goods_manage_hl.gif']").each(function(index){
       		$(this).attr("background","");
       	});
       	$(obj).attr("background","images/goods_manage_hl.gif");
   	}
	function opentd(name)
	{
		$(window.parent.parent.frames["topFrame"].document).find("#point").html($('#'+name).text());
		
		var back=$("#"+name).attr("background");
		var pattern = "1";
		var pattern1=".jpg";
		if(back.indexOf("1")>0)
			back = back.replace(new RegExp(pattern), "");
		else
			back = back.replace(new RegExp(pattern1), "1.jpg");
		$("td[name^='td_hide_']").each(function(index){
			 
			 var backAll=$(this).attr("background");
				if(backAll.indexOf("1")>0)
					backAll = backAll.replace(new RegExp(pattern), "");
				$(this).attr("background",backAll);
		});
		$("#"+name).attr("background",back);
		$("tr[name^='tr_hide_']").each(function(index){
			$(this).attr("style","display:none");
		});
		if($("#"+name).attr("background").indexOf("1")>0)
		$("tr[name='tr_hide_"+name+"']").attr("style","display:blank");
	}
	</script>
 <!--<c:if test="${sessionScope.supplierAclArray[2]=='1'}">
  <tr> 
    <td valign="top" class="titleBgColor"><img src="images/list2.gif" width="11" height="11" border="0"> 
      <b>促销管理</b></td>
  </tr>
  <tr> 
    <td valign="top"><table width="98%" border="0" align="center" cellpadding="2" cellspacing="1">
        <tr> 
          <td onMouseOver="this.className='changeBg'" onMouseOut="this.className=''"><img src="images/list4.gif" width="19" height="16" border="0" align="absMiddle"> 
            <a href="admin_addNews.asp">添加促销活动</a></td>
        </tr>
        <tr> 
          <td onMouseOver="this.className='changeBg'" onMouseOut="this.className=''"><img src="images/list4.gif" width="19" height="16" border="0" align="absMiddle"> 
            <a href="admin_manageNews.asp">活动修改删除</a></td>
        </tr>
        <tr> 
          <td onMouseOver="this.className='changeBg'" onMouseOut="this.className=''"><img src="images/list4.gif" width="19" height="16" border="0" align="absMiddle"> 
            <a href="admin_manageGuestBook.asp">查看促销活动</a></td>
        </tr>
      </table></td>
  </tr>
  </c:if>-->
  
        <%-- <tr> 
          <td onMouseOver="this.className='changeBg'" onMouseOut="this.className=''"><img src="images/list4.gif" width="19" height="16" border="0" align="absMiddle"> 
            <a href="${ctx}/supplierCaiWu/countMoney" target="main">商品收支情况</a></td>
        </tr>
        <tr> 
          <td onMouseOver="this.className='changeBg'" onMouseOut="this.className=''"><img src="images/list4.gif" width="19" height="16" border="0" align="absMiddle"> 
            <a href="admin_manageHelp.asp">运营商账务往来</a></td>
        </tr> --%>
</body>
<%@ include file="include/bottom.jsp" %>
